package com.hqyj.am.controller;


import com.hqyj.am.pojo.ResultVo;
import com.hqyj.am.pojo.User;
import com.hqyj.am.pojo.WorkNote;
import com.hqyj.am.service.IWorkNoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 考情管理控制类
 *
 * @author rock
 * @since 2022-08-16
 */
@RestController
@RequestMapping("/work-note")
public class WorkNoteController {

    @Autowired
    private IWorkNoteService workNoteService;

    @PostMapping("/addWorkTime")
    public ResultVo addWorkTime(User user) {
        return workNoteService.addWorkTime(user);
    }

    @PostMapping("/addQuitTime")
    public ResultVo addQuitTime(User user) {
        return workNoteService.addQuitTime(user);
    }

    @GetMapping("/selectAttendanceRecords")
    public ResultVo selectAttendanceRecords(WorkNote workNote) {
        return workNoteService.selectAttendanceRecords(workNote);
    }

}

